package org.osomit.sacct.security.context.impl;

import org.osomit.sacct.security.context.iface.SecurityContext;
import org.osomit.sacct.security.key.exchange.iface.Server;
import org.osomit.sacct.security.key.exchange.impl.SkipServer;
import org.osomit.sacct.session.token.impl.SessionToken;

import javax.crypto.SecretKey;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jul 1, 2009
 */
public class AccountSecurityContext implements SecurityContext {

    private SessionToken token;

    public AccountSecurityContext(SessionToken token) {
        this.token = token;
    }

    public SessionToken getToken() {
        return token;
    }

    public void setToken(SessionToken token) {
        this.token = token;
    }

    public String getId() {
        return this.token.getId();
    }

    public SecretKey getSessionKey() {
        
        return this.token.getSessionKey();
    }
}
